<?php
namespace app\home\model;
use think\Model;
use think\Db;
class GoodsactiveModel extends Model
{
    public function __construct(){
        parent::__construct();
    }

    //今日必抢
    public function getActive(){
        $active =  Db::table('goods')
            ->where('is_del',0)
            ->where('is_active',1)
            ->order('create_time desc')
            ->limit('10')
            ->select();
//        echo $this->getLastSql();
//        exit;
        return $active;
    }
}
